package org.wz.complex.work.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Pagi<T> {

    @Builder.Default
    private Integer cpage = 1;

    @Builder.Default
    private Integer csize = 10;

    @Builder.Default
    private List<T> list = new ArrayList<>();

    @Builder.Default
    private Long total = 0L;

    @Builder.Default
    private String sort = "id";

    @Builder.Default
    private String order = "desc";

}

